﻿using System;
using System.Xml.Linq;
using HigLabo.Net.Extensions;
using System.Collections.Generic;

namespace HigLabo.Net.Twitter
{
    /// <summary>
    /// 
    /// </summary>
    public class HashTag : ResponseObject
    {
        private Indices _Indices = null;
        private String _Text = "";
        /// <summary>
        /// 
        /// </summary>
        public Indices Indices
        {
            get { return _Indices; }
            set { _Indices = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public String Text
        {
            get { return _Text; }
            set { _Text = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="jsonText"></param>
        public HashTag(String jsonText)
        {
            this.SetProperty(jsonText);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="jsonText"></param>
        public override void SetProperty(string jsonText)
        {
            var d = this.SetData(jsonText);

            this.Indices = new Indices(d.ToString("indices"));
            this.Text = d.ToString("text");
        }
    }
}
